package com.foreknow.elm.dao;

import com.foreknow.elm.po.Cart;

import java.util.List;

public interface CartDao {
    /**
     * 向购物车中添加数据
     * @param cart
     * @return
     * @throws Exception
     */
    public int saveCart(Cart cart)throws Exception;

    /**
     * 更新
     * @param cart
     * @return
     * @throws Exception
     */
    public int updateCart(Cart cart) throws Exception;

    /**
     * 查询购物车中的信息
     * @param cart
     * @return
     * @throws Exception
     */
    public List<Cart> listCart(Cart cart)throws Exception;


    public int allmoneyCart(Cart cart)throws Exception;
}
